import { createContext } from 'react';
import { IWelcomeContext } from '@/pages/HomePage/type';

const INIT_CONTEXT: IWelcomeContext = {
  prefixCls: '',
  userInfo: {},
  isResizable: false,
  isDraggable: false,
  commonDispatch: null,
  layoutInfo: {},
  welcomeLayout: {},
  reloadUserInfo: () => { },
  homeDispatch: () => { },

};

export const WelcomeContext = createContext<IWelcomeContext>(INIT_CONTEXT);
